﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BasicModuleConfiguration.Module
{
    // 配置源接口 包装文本文件
    public class TextConfigurationSource : IConfigurationSource
    {
        public string filePath { get; set; }

        public TextConfigurationSource(string path)
        {
            filePath = path;
        }

        public IConfigurationProvider Build(IConfigurationBuilder builder)
        {
            return new TextConfigurationProvider(this);
        }
    }
}
